﻿<?xml version="1.0" encoding="utf-8" ?>
<xs:schema id="Links" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xe="http://www.CrossFactory.net/XmlEditor">
  <xs:complexType name="paragraphs" mixed="false">
    <xs:sequence minOccurs="1" maxOccurs="1">
      <xs:group ref="paragraphsgroup" maxOccurs="unbounded" minOccurs="0" />
    </xs:sequence>
  </xs:complexType>
  <xs:simpleType name="imagepos">
    <xs:restriction base="xs:string">
      <xs:enumeration value="left" />
      <xs:enumeration value="right" />
    </xs:restriction>
  </xs:simpleType>
  <xs:group name="paragraphsgroup">
    <xs:choice>
      <xs:element name="paragraph" type="paragraph" />
    </xs:choice>
  </xs:group>
  <xs:complexType name="paragraph" mixed="true">
    <xs:sequence>
      <xs:element name="tabulation" type="yesno" default="no" maxOccurs="1" minOccurs="1" xe:property="true" />
      <xs:element name="spacing" type="yesno" default="yes" maxOccurs="1" minOccurs="1" xe:property="true" />
      <xs:element name="alignment" type="alignment" default="justify" maxOccurs="1" minOccurs="1" xe:property="true" />
      <xs:element name="data" type="data" maxOccurs="1" minOccurs="1" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="data" mixed="true">
    <xs:group ref="paragraphgroup" maxOccurs="unbounded" minOccurs="0" />
  </xs:complexType>
  <xs:group name="paragraphgroup">
    <xs:choice>
      <xs:element name="stylerule" type="stylerule" />
      <xs:element name="hyperlink" type="hyperlink" xe:hyperlinkType="www,page" />
    </xs:choice>
  </xs:group>
  <xs:element name="paragraphs" type="paragraphs"></xs:element>
</xs:schema>